package com.ruoyi.pcj.domain;

import java.util.List;

import com.mashuai.utils.toolkit.core.msHandlebean.annotation.MsDelCheck;
import com.mashuai.utils.toolkit.core.msHandlebean.annotation.MsJoinSubTable;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.pcj.constant.TbConstant;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 贴吧板块管理对象 pcj_tb_plate
 *
 * @author ms
 * @date 2024-02-26
 */
@Data
@TableName(TbConstant.pcjPlate)
public class PcjTbPlate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @MsDelCheck(checkTable = {"pcj_tb_plate_partition@plate_id"}, errorMsg = "删除数据中存在贴吧板块被其他表引用，无法删除！")
    @MsJoinSubTable(joinTable = TbConstant.pcjPlatePat, joinField = "plate_id", clazz = PcjTbPlatePartition.class, setField = "pcjTbPlatePartitionList", condition = " del_flag = 0 ")
    @TableField("id")
    private String id;


    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    @TableField("del_flag")
    private Integer delFlag;


    /** 创建人id */

    /** 更新人id */

    /**
     * 板块名称
     */
    @TableField("name")
    private String name;


    /**
     * 板块状态-1启用，0停用
     */
    @TableField("status")
    private String status;


    /**
     * 板块负责人id
     */
    @TableField("moderator_user_ids")
    private String moderatorUserIds;


    /**
     * 版本图片
     */
    @TableField("img_url")
    private String imgUrl;


    /**
     * 贴吧-板块分区信息
     */
    @TableField(exist = false)
    private List<PcjTbPlatePartition> pcjTbPlatePartitionList;


    public List<PcjTbPlatePartition> getPcjTbPlatePartitionList() {
        return pcjTbPlatePartitionList;
    }

    public void setPcjTbPlatePartitionList(List<PcjTbPlatePartition> pcjTbPlatePartitionList) {
        this.pcjTbPlatePartitionList = pcjTbPlatePartitionList;
    }

}
